{% extends "base.html" %}

{% block title %}Score: {{ object.title }}{% endblock %}

{% block header %}Score: {{ object.title }}{% endblock %}

{% block content %}
{% if object.sib_file %}
<a style="border: 1px solid #ccc; background-color: #ddd;" href="javascript:" onClick="$('div.hideplugin object').length?$('div.hideplugin').toggle('slow'):$('div.hideplugin').load('http://drab-makyo.com/ajax/score/{{ object.slug }}')&&$('div.hideplugin').toggle('slow');">Show/Hide Sibelius Scorch version of {{object.title}}</a> - <a style="border: 1px solid #ccc; background-color: #ddd;" href="/ajax/score/{{ object.slug }}/" target="_blank">Open in new window/tab</a>
<div class="hideplugin">
</div>
{% endif %}
<p>
{{ object.description|safe }}
</p>

<ul>
    <li><strong>Date:</strong> {{ object.date|date:"F, Y" }}</li>
    <li><strong>Instrumentation:</strong> {{ object.instrumentation }}</li>
    <li><strong>Duration:</strong> {{ object.duration }} minutes</li>
    <li><strong>Printable PDF:</strong> {% if object.pdf_file %}<a href="http://media.drab-makyo.com/{{ object.pdf_file }}" target="_blank">Available</a>{% else %}<em>N/A</em>{% endif %}</li>
    <li><strong>Recordings:</strong> {% for rec in object.recording_set.all %}<a href="/recording/{{ rec.slug }}/">{% if rec.performer %}{{ rec.performer }}{% else %}{% if rec.source %}{{ rec.source }}{% else %}[ {{ rec.id }} ]{% endif %}{% endif %}</a> {% endfor %}</li>
    <li><strong>Status:</strong> {{ object.get_status_display }}</li>
    <li><strong>Part of multi-part work:</strong> {% if object.part_of_work %}<a href="/gallery/{{ object.part_of_work.slug }}/">{{ object.part_of_work.title }}</a>{% else %}<em>N/A</em>{% endif %}</li>
    <li><strong>External link:</strong> {% if object.external_link %}<a href="{{ object.external_link }}" target="_blank">{{ object.external_link }}</a>{% else %}<em>N/A</em>{% endif %}</li>
</ul>

{% include "portfolio/license.html" %}
{% endblock %}
